package cn.yunyichina.provider.pay.constant;

/**
 * Created by Lullaby on 2016/9/28.
 */
public enum ResponseEnum implements cn.yunyichina.provider.framework.common.ResponseEnum {

    PAY_EXCEPTION                    ("5000", "支付异常"),
    PAY_FAILURE                      ("5001", "支付失败"),
    PAY_CODE_UNSUPPORTED             ("5002", "不支持的支付方式"),
    PAY_SETTING_NOT_FOUND            ("5003", "未找到支付参数配置"),
    PAY_INVALID_PARAMETERS           ("5004", "支付参数有误"),
    ACCESS_TOKEN_EXCEPTION           ("5005", "获取ACCESS_TOKEN异常"),
    ALIPAY_EXCEPTION                 ("5006", "支付宝异常"),
    UNKNOWN_PAY_CODE                 ("5007", "未知支付渠道"),
    USER_INFO_EXCEPTION              ("5008", "获取用户信息异常"),
    REFUND_INVALID_PARAMETERS        ("5009", "退款参数有误"),
    OPENID_EXCEPTION                 ("5010", "获取openid异常"),
    OPENID_WECHAT_EXCEPTION          ("5011", "获取微信openid异常"),
    OPENID_WXAPPLET_FAILURE          ("5012", "获取微信小程序openid失败"),
    OPENID_WXAPPLET_EXCEPTION        ("5013", "获取微信小程序openid异常"),
    OPENID_ALIPAY_EXCEPTION          ("5014", "支付宝授权失败"),
    WECHAT_ACCESS_TOKEN_FAILURE      ("5015", "微信获取ACCESS_TOKEN失败"),
    WECHAT_VERIFY_NAME_FAILURE       ("5016", "微信实名验证失败"),
    NOT_FOUND_TRANSACTION            ("5017", "未找到支付流水"),
    REFUND_UNKNOWN_CHANNEL           ("5020", "未知退费渠道"),
    REFUND_EXCEPTION                 ("5021", "退费异常"),
    REFUND_WECHAT_INVALID_PARAMETERS ("5022", "微信退费参数有误"),
    REFUND_ALIPAY_INVALID_PARAMETERS ("5023", "支付宝退费参数有误"),
    WECHAT_MEDICAL_REFUND_FAILED     ("5024", "微信医疗支付退费失败"),
    WEB_AUTH_CONFIG_EXCEPTION        ("5030", "网页注入配置异常"),
    ORDER_QUERY_EXCEPTION            ("5040", "订单查询异常"),
    ORDER_REVERSE_EXCEPTION          ("5041", "订单撤销异常"),
    ORDER_REVERSED                   ("5042", "订单已撤销"),
    UNSUPPORTED                      ("5050", "不支持该种方式"),
    UNKNOWN_APP_TYPE                 ("5051", "未知应用类型"),
    UNSUPPORTED_APP_TYPE             ("5052", "不支持的应用类型"),
    MEDICAL_CARD_QUERY_EXCEPTION     ("5060", "医保查询接口异常"),
    MEDICAL_CARD_INVALID_PARAMETERS  ("5061", "医保查询医保参数有误"),
    PACITY_ACCESS_TOKEN_FAIL         ("5070", "获取平安平台ACCESS_TOKEN失败"),
    PACITY_USER_INFO_FAIL            ("5071", "获取平安平台用户信息失败"),
    PACITY_PAY_FAIL                  ("5072", "平安支付失败"),
    PACITY_REFUND_FAIL               ("5073", "平安付退费失败"),
    DOWNLOAD_BILL_EXCEPTION          ("5080", "下载对账单异常"),
    QUERY_BALANCE_EXCEPTION          ("5081", "查询余额异常"),
    ;

    private String code;

    private String message;

    ResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

}

